# List
skills = ["js", "python", "vue2", "angular", "react"]

# del 🏀
del skills[0]
print(skills)  # ['python', 'vue2', 'angular', 'react']


# pop 🏀 python3 不指定下标, 默认删除最后一个元素
skills.pop()
print(skills)  # ['python', 'vue2', 'angular']

skills.pop(0)
print(skills)  # [ 'vue2', 'angular']
skills.pop(0)
print(skills)  # ['angular']

# remove 🏀 根据元素的值进行删除,默认删除第一个找到的元素
if "vue2" in skills:
    skills.remove("vue2")
else:
    print("Not have vue2 in list")

print(skills)  # ['angular']
